package com.itheima.apis.user;


import com.itheima.apis.user.fallback.IUserClientFallBack;
import com.itheima.model.common.dtos.ResponseResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(value = "user-service",fallback = IUserClientFallBack.class)
public interface IUserClient {
    @GetMapping("/api/v1/author/vo")
    ResponseResult getAuthorVo(@RequestParam Integer authorId);
}
